<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="com.alibaba.fastjson.JSONArray" %>
<%--判断流程状态--%>
<%
    String workflowid = Util.null2String(request.getParameter("workflowid"));
    String requestid = Util.null2String(request.getParameter("requestid"));
    JSONObject jsonData = new JSONObject();
    //0：创建 1：审批 2：提交 3：归档
    RecordSet rs = new RecordSet();
    String sql ="select count(*) from workflow_requestbase where workflowid=? and requestid !=? and currentnodetype<3";
    rs.executeQuery( sql, workflowid, requestid );
    rs.next();
    int counts = Util.getIntValue( rs.getString( 1 ) );
    jsonData.put( "counts", counts );
    out.print( jsonData.toJSONString() );
%>






